Represents a variable that may or may not have bounds. More...
#include <variable.hpp>
Public Member Functions | |
BoundedVariableT (const T &value) | |
Construct with an initial value. | |
BoundedVariableT (const T &value, const T &lo, const T &hi) | |
Construct with an initial value and bounds. | |
~BoundedVariableT (void) | |
Destructor. | |
T | initial (void) const |
Get the initial value. | |
void | initial (const T &value) |
Set the initial value. | |
bool | bounded (void) const |
Is this variable bounded. | |
T | lowerBound (void) const |
T | upperBound (void) const |
Static Public Attributes | |
static const T | veryLowValue |
lower bound for unbounded variables | |
static const T | veryHighValue |
upper bound for unbounded variables |
Represents a variable that may or may not have bounds.
gridpack::optimization::BoundedVariableT< T >::BoundedVariableT | ( | const T & | value | ) |
Construct with an initial value.
gridpack::optimization::BoundedVariableT< T >::BoundedVariableT | ( | const T & | value, | |
const T & | lo, | |||
const T & | hi | |||
) |
Construct with an initial value and bounds.
gridpack::optimization::BoundedVariableT< T >::~BoundedVariableT | ( | void | ) |
Destructor.
bool gridpack::optimization::BoundedVariableT< T >::bounded | ( | void | ) | const |
Is this variable bounded.
void gridpack::optimization::BoundedVariableT< T >::initial | ( | const T & | value | ) |
Set the initial value.
T gridpack::optimization::BoundedVariableT< T >::initial | ( | void | ) | const |
Get the initial value.
T gridpack::optimization::BoundedVariableT< T >::lowerBound | ( | void | ) | const |
T gridpack::optimization::BoundedVariableT< T >::upperBound | ( | void | ) | const |
const T gridpack::optimization::BoundedVariableT< T >::veryHighValue [static] |
upper bound for unbounded variables
const T gridpack::optimization::BoundedVariableT< T >::veryLowValue [static] |
lower bound for unbounded variables